package com.whut.mapper;

import com.whut.model.Problemdescription;
import com.whut.v_model.PrePdName4;
import com.whut.v_vo.equipReportBaseVO.FifthListVO;
import com.whut.v_vo.oldSysLastListVO;

import java.util.List;

public interface ProblemdescriptionMapper {
    int deleteByPrimaryKey(Integer number);

    int insert(Problemdescription record);

    int insertSelective(Problemdescription record);

    Problemdescription selectByPrimaryKey(Integer number);

    int updateByPrimaryKeySelective(Problemdescription record);

    int updateByPrimaryKey(Problemdescription record);

    /*my methods*/
    void deleteAll();

    List<Problemdescription> getPDBySixthNum(int sixNum);

    List<Problemdescription> getLastLevel(int preNum);

    Problemdescription getFather(int number);

    String getProblemDescriptionByKey(int number);

    List<PrePdName4> getAllById(List<Integer> list);

    List<FifthListVO> getAllProblemDesAndOthers(List<Integer> fifthIdList);

    List<Problemdescription> getLastIdByPDText(String text);

    List<Integer> getSixthByPDText(String text);

    List<oldSysLastListVO> getLastListByUpperId(int preNum);

    List<Problemdescription> getLastListByLastId(Integer lastId);
}